﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;


namespace Particle_Editor
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
          //Application.Run(new Form1());'

            Form1 theform = new Form1();

            theform.Show();

            if (theform.OpenFilePath())
            {
                theform.Looping = true;
            }
            else
                theform.Close();

            while (theform.Looping)
            {
                theform.Update1();

                theform.Render();

                Application.DoEvents();

                Thread.Sleep(1);
            }
        }
    }
}
